package www.lagou.app;

import org.junit.Test;
import www.lagou.dao.phoneDao;
import www.lagou.entity.phone;

import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;

public class TestPhoneDao {
    phoneDao pd = new phoneDao();
    @Test
    public void testFindAllPhone() throws SQLException {
        List<phone> phoneList = pd.findAllPhone(2000);

        for(phone p:phoneList){
            System.out.println(p);
        }

    }
    @Test
    public void testFindPhoneByColor() throws SQLException {
        List<phone> phoneList = pd.findPhoneByColor("白色");

       for(phone p:phoneList){
           System.out.println(p);
       }

    }}
